<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--引用CSS-->
	<link rel="stylesheet" type="text/css" href="css/mycss.css">
	
  </head>
  
  <body>
  <script type="text/javascript">
      function rec(form){
      
      var a=form.com_name.value;
      var b=form.com_password.value;
    
      if(a==""){
          alert("账户不可以为空！");
          return false;
      }  
      
      if(b==""){
          alert("密码不可以为空！");
          return false;
      }   
         
      
      return true;   
      
      }
  
  </script>
  
  <table width="773" height="787" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td height="112" colspan="2"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  
  
  <tr>
    <td width="25%" height="500"><div align="center">

    <jsp:include flush="true" page="left.jsp"></jsp:include>
    </div></td>
    
    
    
    <td width="75%"><div align="center" >  
  
  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
  
  
  
  
    <form action="saveCom.action">
      <table width="80%" align="center" border="1" bgcolor="#D0D0D0" >
        <tr >
          <td colspan="2" align="center">公司注册页面</td>
        </tr>
       
       
       <tr>
        
        <td><s:textfield name="com_name" label="公司名称"/></td>
       </tr>
       
        <tr>
        
        <td><s:password name="com_password" label="登陆密码"/></td>
       </tr>
       
         <tr>
        <td><s:textfield name="com_location" label="公司地址"/></td>
       </tr>
       
         <tr>
        <td><s:textfield name="com_website" label="公司网址"/></td>
       </tr>
       
         <tr>
        <td><s:textfield name="com_email" label="公司邮箱"/></td>
       </tr>
       
         <tr>
        <td><s:textfield name="com_context" label="公司简介"/></td>
       </tr>
       
       
       <tr>
          <td colspan="2" align="center">
            <input type="submit" value="提交"  onclick="return rec(this.form);"  />
            <input type="reset" value="重置"/>
         </td>
       </tr>
      </table>
     
    </form>

<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->



    </div></td>
  </tr>
  
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div></td>
  </tr>
    
  
</table>
  </body>
</html>
